package com.sg.dto.biz.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


@Data
public class PostGradesDto extends BaseDto implements Serializable {

    /**
     * 岗位等级ID:
     */
    @ApiModelProperty("岗位等级ID")
    private String stationGradeId;

    /**
     * 岗位等级中文名称:
     */
    @ApiModelProperty("岗位等级中文名称")
    private String stationGradeName;

    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        PostGradesDto that = (PostGradesDto) o;
        return stationGradeId == that.stationGradeId && stationGradeName == that.stationGradeName && orderNumber == that.orderNumber;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), stationGradeId, stationGradeName, orderNumber);
    }

}
